Skip to content

Conversation

miguel-parada
Copy link
Contributor

Adding update to reflect the following known issue and considerations to avoid unexpected billing due loop ingestion issues.

From Azure portal when creating or updating Diagnostic Settings for an Azure Storage account or Azure Event Hub namespace, you could be unable to select itself as a destination for the resource logs or metrics data. This is by design as it is possible to get into a state where resource logs or metrics being sent from a resource to the same resource would generate an infinite loop of generating and writing data. This design is only applied at the Azure portal UX layer, if there is truly a need to write data to the same resource and you are willing to accept the associated risks, you can create the Diagnostic Setting using Azure PowerShell, Azure CLI, REST API, ARM Template or other supported Microsoft SDK

Adding update to reflect the following known issue and considerations to avoid unexpected billing due loop ingestion issues.

From Azure portal when creating or updating Diagnostic Settings for an Azure Storage account or Azure Event Hub namespace, you could be unable to select itself as a destination for the resource logs or metrics data.
This is by design as it is possible to get into a state where resource logs or metrics being sent from a resource to the same resource would generate an infinite loop of generating and writing data.
This design is only applied at the Azure portal UX layer, if there is truly a need to write data to the same resource and you are willing to accept the associated risks, you can create the Diagnostic Setting using Azure PowerShell, Azure CLI, REST API, ARM Template or other supported Microsoft SDK
Copy link
Contributor

@miguel-parada : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit 4da0538:

✅ Validation status: passed

File Status Preview URL Details
articles/azure-monitor/platform/diagnostic-settings.md ✅Succeeded

For more details, please refer to the build report.

@v-dirichards
Copy link
Contributor

@bwren

Can you review the proposed changes?

Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged C+L Pull Request Review Team label label Aug 7, 2025
@v-dirichards
Copy link
Contributor

@bwren Could you review this proposed update to your article and enter #sign-off in a comment if it's ready to merge?

Thanks!

Copy link

github-actions bot commented Sep 1, 2025

This pull request has been inactive for at least 14 days. If you are finished with your changes, don't forget to sign off. See the contributor guide for instructions.
Get Help
Docs Support Teams Channel
Resolve Merge Conflict

@github-actions github-actions bot added the inactive This PR is inactive for more than 14 days label Sep 1, 2025
@v-dirichards v-dirichards requested a review from Copilot October 14, 2025 21:08
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a warning to the diagnostic settings documentation about potential infinite loop scenarios when configuring Azure Storage accounts or Event Hub namespaces as destinations for their own diagnostic logs. The warning informs users that while the Azure portal prevents this configuration by design, it can still be accomplished through other tools like PowerShell, CLI, REST API, or ARM templates if needed.

Key Changes

  • Added a new WARNING callout explaining the restriction on self-referential diagnostic settings
  • Documented the billing and operational risks associated with circular log ingestion
  • Clarified that the restriction is portal-specific and can be bypassed through other Azure tools

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

> Delete any diagnostic settings for a resource if you delete or rename that resource, or if you migrate it across resource groups or subscriptions. If the diagnostic setting isn't removed and this resource is recreated, any diagnostic settings for the deleted resource could be applied to the new one. This would resume the collection of resource logs as defined in the diagnostic setting.
> [!WARNING]
> From Azure portal when creating or updating Diagnostic Settings for an Azure Storage account or Azure Event Hub namespace, you could be unable to select itself as a destination for the resource logs or metrics data.
Copy link

Copilot AI Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove 'From' at the beginning of the sentence or rephrase. Suggested: 'In the Azure portal, when creating or updating Diagnostic Settings for an Azure Storage account or Azure Event Hub namespace, you will be unable to select itself as a destination for the resource logs or metrics data.'

Suggested change
> From Azure portal when creating or updating Diagnostic Settings for an Azure Storage account or Azure Event Hub namespace, you could be unable to select itself as a destination for the resource logs or metrics data.
> In the Azure portal, when creating or updating Diagnostic Settings for an Azure Storage account or Azure Event Hub namespace, you will be unable to select itself as a destination for the resource logs or metrics data.

Copilot uses AI. Check for mistakes.

> [!WARNING]
> From Azure portal when creating or updating Diagnostic Settings for an Azure Storage account or Azure Event Hub namespace, you could be unable to select itself as a destination for the resource logs or metrics data.
> This is by design as it is possible to get into a state where resource logs or metrics being sent from a resource to the same resource would generate an infinite loop of generating and writing data.
> This design is only applied at the Azure portal UX layer, if there is truly a need to write data to the same resource and you are willing to accept the associated risks, you can create the Diagnostic Setting using Azure PowerShell, Azure CLI, REST API, ARM Template or other supported Microsoft SDK.
Copy link

Copilot AI Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This run-on sentence should be split for better readability. Suggested: 'This design is only applied at the Azure portal UX layer. If there is truly a need to write data to the same resource and you are willing to accept the associated risks, you can create the Diagnostic Setting using Azure PowerShell, Azure CLI, REST API, ARM Template, or other supported Microsoft SDKs.'

Suggested change
> This design is only applied at the Azure portal UX layer, if there is truly a need to write data to the same resource and you are willing to accept the associated risks, you can create the Diagnostic Setting using Azure PowerShell, Azure CLI, REST API, ARM Template or other supported Microsoft SDK.
> This design is only applied at the Azure portal UX layer. If there is truly a need to write data to the same resource and you are willing to accept the associated risks, you can create the Diagnostic Setting using Azure PowerShell, Azure CLI, REST API, ARM Template, or other supported Microsoft SDKs.

Copilot uses AI. Check for mistakes.

> [!WARNING]
> From Azure portal when creating or updating Diagnostic Settings for an Azure Storage account or Azure Event Hub namespace, you could be unable to select itself as a destination for the resource logs or metrics data.
> This is by design as it is possible to get into a state where resource logs or metrics being sent from a resource to the same resource would generate an infinite loop of generating and writing data.
> This design is only applied at the Azure portal UX layer, if there is truly a need to write data to the same resource and you are willing to accept the associated risks, you can create the Diagnostic Setting using Azure PowerShell, Azure CLI, REST API, ARM Template or other supported Microsoft SDK.
Copy link

Copilot AI Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing comma before 'or' in the list. Should be 'ARM Template, or other supported Microsoft SDKs' (also note 'SDK' should be pluralized to 'SDKs').

Suggested change
> This design is only applied at the Azure portal UX layer, if there is truly a need to write data to the same resource and you are willing to accept the associated risks, you can create the Diagnostic Setting using Azure PowerShell, Azure CLI, REST API, ARM Template or other supported Microsoft SDK.
> This design is only applied at the Azure portal UX layer, if there is truly a need to write data to the same resource and you are willing to accept the associated risks, you can create the Diagnostic Setting using Azure PowerShell, Azure CLI, REST API, ARM Template, or other supported Microsoft SDKs.

Copilot uses AI. Check for mistakes.

@v-dirichards
Copy link
Contributor

@bwren

Can you review this old PR and determine whether it needs to be closed or merged?

@MicrosoftDocs/public-repo-pr-review-team

@github-actions github-actions bot removed the inactive This PR is inactive for more than 14 days label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants